<?php if ($list_image) { ?>
    <ul>
        <?php foreach ($list_image as $k => $v) { ?>
            <li <?php if ($k == 0) {
                print'style="margin-left: 0;"';
            } ?>>
                <a class="fancyboxClick" href="<?= PATH_URL . DIR_UPLOAD_GALLERY . $v->image ?>" rel="gallery"><img
                        alt="" src="<?= resizeImage(PATH_URL . DIR_UPLOAD_GALLERY . $v->image, 100, 100) ?>"/></a>

                <div class="action">
                    <img onclick="delImage(<?= $v->id ?>)" alt="Delete item"
                         src="<?= PATH_URL . 'static/images/admin/icons/delete.png' ?>"/>
                </div>
            </li>
        <?php } ?>
    </ul>
<?php
} else {
    echo '<div style="margin-top: 10px;">No Image.</div>';
}
?>